import Vue from 'vue'
import App from './App.vue'
import './plugins/element.js'
import store from './store'
import router from './router'
import Icon from 'vue-svg-icon/Icon.vue'
import draggable from 'vuedraggable'
require('./mock') // 刚刚手写的mock.js文件
// 引入 ECharts 主模块
let echarts = require('echarts/lib/echarts')
// 引入饼状图
require('echarts/lib/chart/pie')

// 引入提示框和title组件，图例
require('echarts/lib/component/tooltip')
require('echarts/lib/component/title')
require('echarts/lib/component/legend')

require('echarts/lib/component/legendScroll') //图例滚动
//vue全局注入echarts
Vue.prototype.$echarts = echarts
Vue.component('draggable', draggable)
Vue.component('icon', Icon) // svg 图片嵌入html
Vue.config.productionTip = false

import '@/assets/overallsituation.css' // 全局css样式
new Vue({
  store,
  router,
  render: h => h(App)
}).$mount('#app')
